package org.example.slave.packet;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author dingrui
 * @since 2022/2/15
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BasePacket extends PacketWithHeader {

    private byte[] body;

    public BasePacket() {
    }

    public BasePacket(HeaderPacket header, byte[] body) {
        super(header);
        this.body = body;
    }
}
